package biz.datalk.industrialland.common.result;

/**
 * @author tarofang@163.com
 * @date 2019年03月19日
 */
public abstract class UnifyResultCode {
    public static String SUCCESS = "0";
    public static String FAIL = "-1";
    public static String ERROR = "9999";
    public static String APPLICATION_ERROR = "9000";
    public static String VALIDATE_ERROR = "9001";
    public static String SERVICE_ERROR = "9002";
    public static String CACHE_ERROR = "9003";
    public static String DAO_ERROR = "9004";
    public static String DB_ERROR = "9010";

    /** 登录超时，请重新登录。 */
    public static String TOKEN_TIMEOUT = "9005";
    /** 请求令牌不存在  无权限访问*/
    public static String TOKEN_NO_EXISTS = "9051";
    /** 请求令牌失效  token非法无效! */
    public static String TOKEN_INVALID = "9052";
    /** 用户不存在 */
    public static String TOKEN_USER_NO_EXISTS = "9053";
    /** 账号锁定 */
    public static String TOKEN_USER_LOCK = "9054";

    /** 不支持请求方法错误 */
    public static String METHOD_NO_SUPPORT_ERROR = "9006";
    /** 请求方法签名错误 */
    public static String METHOD_SIGN_ERROR = "9007";
    /** 请求资源不存在 */
    public static String ERROR_REQUEST_NOT_FOUND = "9008";

    /** 加解密错诶 */
    public static String ENCRYPTION_ERROR = "9100";
    /** DES 数据加解密错误 */
    public final static String ENCRYPTION_ERROR_DES = "9110";
    /** AES 数据加解密错误 */
    public static String ENCRYPTION_ERROR_AES = "9120";
    /** RSA 数据加解密错误 */
    public static String ENCRYPTION_ERROR_RSA = "9130";
    /** 国密 数据加解密错误 */
    public static String ENCRYPTION_ERROR_GM = "9140";
    /** SM2 数据加解密错误 */
    public static String ENCRYPTION_ERROR_SM2 = "9141";
    /** SM3 数据加解密错误 */
    public static String ENCRYPTION_ERROR_SM3 = "9142";
    /** SM4 数据加解密错误 */
    public static String ENCRYPTION_ERROR_SM4 = "9143";


}
